package org.zt.java.dal.config.vo;

import java.util.ArrayList;
import java.util.List;

public class DataSourceConfig {

	private String defauleDataSource;
	private DataSourceConfigItem masterDatasourceConfig;
	private List<DataSourceConfigItem> slaveDataSourceConfigs = new ArrayList<>();

	public DataSourceConfig() {
		super();
	}

	public DataSourceConfig(String defauleDataSource,
			DataSourceConfigItem masterDatasourceConfig,
			List<DataSourceConfigItem> slaveDataSourceConfigs) {
		super();
		this.defauleDataSource = defauleDataSource;
		this.masterDatasourceConfig = masterDatasourceConfig;
		this.slaveDataSourceConfigs = slaveDataSourceConfigs;
	}

	public String getDefauleDataSource() {
		return defauleDataSource;
	}

	public DataSourceConfigItem getMasterDatasourceConfig() {
		return masterDatasourceConfig;
	}

	public void setMasterDatasourceConfig(
			DataSourceConfigItem masterDatasourceConfig) {
		this.masterDatasourceConfig = masterDatasourceConfig;
	}

	public List<DataSourceConfigItem> getSlaveDataSourceConfigs() {
		return slaveDataSourceConfigs;
	}

	public void setSlaveDataSourceConfigs(
			List<DataSourceConfigItem> slaveDataSourceConfigs) {
		this.slaveDataSourceConfigs = slaveDataSourceConfigs;
	}

	public void setDefauleDataSource(String defauleDataSource) {
		this.defauleDataSource = defauleDataSource;
	}



}
